import { request } from 'request'
// home
export const REQUEST_BANNER = params => request({url: '/banner', params });

export const REQUEST_RECOMMENDLIST = params => request({url: '/personalized', params });

export const REQUEST_TOPLIST = params => request({url: '/top/list', params });

// login
export const REQUEST_LOGIN_CELLPHONE = params => request({url: '/login/cellphone', params });


// personal
export const REQUEST_USER_RECORD = params => request({url: '/user/record', params });


// video
export const REQUEST_GROUP_LIST = params => request({url: '/video/group/list', params });

export const REQUEST_GROUP = (params, header) => request({url: '/video/group', params, ...header });

// recommend
export const REQUEST_RECOMMEND_SONGS = (params, header) => request({url: '/recommend/songs', params, ...header });

// songDetail
export const REQUEST_SONG_DETAIL = (params) => request({url: '/song/detail', params });

export const REQUEST_SONG_URL = (params) => request({url: '/song/url', params });

// search
export const REQUEST_SEARCH_DEFAULT = (params) => request({url: '/search/default', params });

export const REQUEST_SEARCH_HOT_DETAIL = (params) => request({url: '/search/hot/detail', params });

export const REQUEST_SEARCH = (params) => request({url: '/search', params });

